package com.whisper.hfdp.design.command;

public class RemoteControlTest {
    public static void main(String[] args) {
        SimpleRemoteControl remote = new SimpleRemoteControl();
        Light light = new Light();
        LightOnCommand loc = new LightOnCommand(light);
        remote.setSlot(loc);
        remote.buttonWasPressed();

        GarageDoor garageDoor = new GarageDoor();
        GarageDoorOpenCommand gdoc = new GarageDoorOpenCommand(garageDoor);
        remote.setSlot(gdoc);
        remote.buttonWasPressed();
    }
}
